<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
</style>
<script>
	export default {
		globalData: {
			windowWidth: '320rpx',
			windowHeight: '568rpx',
		},
		onLaunch: function() {
			console.log('App Launch')
			uni.getSystemInfo({
				success: function (res) {
					console.log('App Launch getSystemInfo:',res);
					uni.setStorageSync('deviceId', res.deviceId);
					uni.setStorageSync('deviceBrand', res.deviceBrand);
					uni.setStorageSync('deviceModel', res.deviceModel);
					uni.setStorageSync('osVersion', res.osName + res.osVersion);
					uni.setStorageSync('platform', res.uniPlatform);
					
				}
			});
		},
		onShow: function() {
			console.log('App Show')
			uni.getSystemInfo({
				success: function(res) {
					console.log("屏幕宽度：" + res.screenWidth);
					console.log("屏幕高度：" + res.screenHeight);
					console.log("可使用窗口宽度：" + res.windowWidth);
					console.log("可使用窗口高度：" + res.windowHeight);
				}
			});

		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>


<style lang="scss">

</style>